package UI;




import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Commnads.GuiCommands;


/**
 * Servlet implementation class TryServ
 */
public class StopInitServ extends HttpServlet {
	private static final long serialVersionUID = 1L;
    private GuiCommands command;   
    public StopInitServ() 
    {
        super();
    }
    
    public StopInitServ(GuiCommands com) 
    {
    	command = com;
    }
    
	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
    public void service(HttpServletRequest req, HttpServletResponse resp) throws IOException 
    {
    		command.stopInitialization();
    		String proB = "<div class=\"meter-wrap\">"+ 
			"<div class=\"meter-value\" style=\"background-color: #800080; width:"+0+"%;\">"+
			"<div class=\"meter-text\" align=\"right\">"+0+"%</div>"+        	
			"</div></div>";
			String script = "<script> parent.progB('"+proB+"'); </script>";
			resp.getWriter().println(script);
			resp.getWriter().flush();
    }

}
